package com.example.demo.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.demo.entity.TUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.validation.constraints.NotNull;

@RestController
@RequestMapping("/instanct")
public class InstanceController {

    //@Autowired
    //InstanceA instanceA;

    @GetMapping("/speak")
    public String insertData(@RequestBody ScheduleRequest request){
        System.out.println("insert ...");
        //instanceA.speak();
        return "speak";
    }
}
